
// Define Components shortcut
  if (typeof Cc == "undefined")
    var Cc = Components.classes;
  if (typeof Ci == "undefined")
    var Ci = Components.interfaces;
  if (typeof Cr == "undefined")
    var Cr = Components.results;
  if (typeof Cu == "undefined")
    var Cu = Components.utils;


let EXPORTED_SYMBOLS = ["AutoToggleController"];

let AutoToggleController = {

  //*************************************************************************//
  // Shortcuts - import from modules
  S : null,
  Sizzle : null,

  onToggleMenu : function(){
    let els = this.S("#toolbar-menubar", document);
    for each(let el in els){
      el.collapsed = !el.collapsed;
    }
  }
}

Cu.import("resource://autotoggle/modules/sizzle.fox.js", AutoToggleController);
